package com.ych.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.kafka.annotation.EnableKafka;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

@Configuration
@EnableKafka
public class Configure {
    @Bean//目的是告诉spring,要扫描带有@ServerEndpoint注解的类
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }
}
